<?php
if(preg_match('/\d+\.\d+\.\d+.\d+/',$_GET["version"]) & preg_match('/[a-z0-9]{32,32}/',$_GET["softid"]) )
{
    include "islogin.php";
    if($is_log=="1")
    {
        setcookie("nickname", $nickname, time() - 180000, "/");
        setcookie("check", $checkcode, time() - 180000, "/");
        echo "1";
    }
    else
    {
       include 'setting.php';
		$con = mysqli_connect($sqldatabase, $sqlusername, $sqlpassword,$sqltable);
		mysqli_query($con,'set names utf8'); 
        mysqli_query($con,"UPDATE softlist SET version = '".$_GET["version"]."',up='".$_POST["update"]."',notice='".$_POST["notice"]."' WHERE softid = '".$_GET["softid"]."'");
        
        echo "0";
        mysqli_close($con);
    }
}
?>